<template>
  <div class="comment">
    <div class="avatar" v-text="avatar"></div>
    <div class="detail">
      <div class="info">
        <div class="name" v-text="name"></div>
        <div class="date" v-text="date"></div>
      </div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "comment",
  props: {
    avatar:{
      type: String
    },
    name:{
      type: String
    },
    date:{
      type: String
    }
  }
}
</script>

<style scoped lang="less">
.comment {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  border-bottom: 1px solid #F0F0F0;
  .avatar {
    border: 1px solid #F0F0F0;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    color: #666666;
    font-size: 15px/41px var(--zd_regular);
    margin-right: 10px;
    line-height: 40px;
  }
  .detail {
    flex: 1;
    .info {
      display: flex;
      align-items: center;
      padding-bottom: 10px;
      .name {
        margin-right: 10px;
        font-size: 15px;
        color: #333333;
      }
      .date {
        color: #8E8E8E;
        font-size: 13px;
      }
    }
  }
  .more {

  }
}
</style>
